Integrand size = 23, antiderivative size = 58 \[ \int \sqrt {a+b \sin ^2(e+f x)} \tan (e+f x) \, dx=\frac {\sqrt {a+b} \text {arctanh}\left (\frac {\sqrt {a+b \sin ^2(e+f x)}}{\sqrt {a+b}}\right )}{f}-\frac {\sqrt {a+b \sin ^2(e+f x)}}{f} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3273, 52, 65, 214} \[ \int \sqrt {a+b \sin ^2(e+f x)} \tan (e+f x) \, dx=\frac {\sqrt {a+b} \text {arctanh}\left (\frac {\sqrt {a+b \sin ^2(e+f x)}}{\sqrt {a+b}}\right )}{f}-\frac {\sqrt {a+b \sin ^2(e+f x)}}{f} \]
[In]
[Out]
Rule 52
Rule 65
Rule 214
Rule 3273
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {\sqrt {a+b x}}{1-x} \, dx,x,\sin ^2(e+f x)\right )}{2 f} \\ & = -\frac {\sqrt {a+b \sin ^2(e+f x)}}{f}+\frac {(a+b) \text {Subst}\left (\int \frac {1}{(1-x) \sqrt {a+b x}} \, dx,x,\sin ^2(e+f x)\right )}{2 f} \\ & = -\frac {\sqrt {a+b \sin ^2(e+f x)}}{f}+\frac {(a+b) \text {Subst}\left (\int \frac {1}{1+\frac {a}{b}-\frac {x^2}{b}} \, dx,x,\sqrt {a+b \sin ^2(e+f x)}\right )}{b f} \\ & = \frac {\sqrt {a+b} \text {arctanh}\left (\frac {\sqrt {a+b \sin ^2(e+f x)}}{\sqrt {a+b}}\right )}{f}-\frac {\sqrt {a+b \sin ^2(e+f x)}}{f} \\ \end{align*}
Time = 0.07 (sec) , antiderivative size = 60, normalized size of antiderivative = 1.03 \[ \int \sqrt {a+b \sin ^2(e+f x)} \tan (e+f x) \, dx=\frac {\sqrt {a+b} \text {arctanh}\left (\frac {\sqrt {a+b-b \cos ^2(e+f x)}}{\sqrt {a+b}}\right )-\sqrt {a+b-b \cos ^2(e+f x)}}{f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(128\) vs. \(2(50)=100\).
Time = 1.20 (sec) , antiderivative size = 129, normalized size of antiderivative = 2.22
method | result | size |
default | \(\frac {\frac {\sqrt {a +b}\, \ln \left (\frac {2 \sqrt {a +b}\, \sqrt {a +b -b \left (\cos ^{2}\left (f x +e \right )\right )}-2 b \sin \left (f x +e \right )+2 a}{1+\sin \left (f x +e \right )}\right )}{2}+\frac {\sqrt {a +b}\, \ln \left (\frac {2 \sqrt {a +b}\, \sqrt {a +b -b \left (\cos ^{2}\left (f x +e \right )\right )}+2 b \sin \left (f x +e \right )+2 a}{\sin \left (f x +e \right )-1}\right )}{2}-\sqrt {a +b -b \left (\cos ^{2}\left (f x +e \right )\right )}}{f}\) | \(129\) |
[In]
[Out]
none
Time = 0.44 (sec) , antiderivative size = 145, normalized size of antiderivative = 2.50 \[ \int \sqrt {a+b \sin ^2(e+f x)} \tan (e+f x) \, dx=\left [\frac {\sqrt {a + b} \log \left (\frac {b \cos \left (f x + e\right )^{2} - 2 \, \sqrt {-b \cos \left (f x + e\right )^{2} + a + b} \sqrt {a + b} - 2 \, a - 2 \, b}{\cos \left (f x + e\right )^{2}}\right ) - 2 \, \sqrt {-b \cos \left (f x + e\right )^{2} + a + b}}{2 \, f}, -\frac {\sqrt {-a - b} \arctan \left (\frac {\sqrt {-b \cos \left (f x + e\right )^{2} + a + b} \sqrt {-a - b}}{a + b}\right ) + \sqrt {-b \cos \left (f x + e\right )^{2} + a + b}}{f}\right ] \]
[In]
[Out]
\[ \int \sqrt {a+b \sin ^2(e+f x)} \tan (e+f x) \, dx=\int \sqrt {a + b \sin ^{2}{\left (e + f x \right )}} \tan {\left (e + f x \right )}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 122 vs. \(2 (50) = 100\).
Time = 0.31 (sec) , antiderivative size = 122, normalized size of antiderivative = 2.10 \[ \int \sqrt {a+b \sin ^2(e+f x)} \tan (e+f x) \, dx=-\frac {\sqrt {a + b} \operatorname {arsinh}\left (\frac {b \sin \left (f x + e\right )}{\sqrt {a b} {\left (\sin \left (f x + e\right ) + 1\right )}} - \frac {a}{\sqrt {a b} {\left (\sin \left (f x + e\right ) + 1\right )}}\right ) - \sqrt {a + b} \operatorname {arsinh}\left (-\frac {b \sin \left (f x + e\right )}{\sqrt {a b} {\left (\sin \left (f x + e\right ) - 1\right )}} - \frac {a}{\sqrt {a b} {\left (\sin \left (f x + e\right ) - 1\right )}}\right ) + 2 \, \sqrt {b \sin \left (f x + e\right )^{2} + a}}{2 \, f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 313 vs. \(2 (50) = 100\).
Time = 0.43 (sec) , antiderivative size = 313, normalized size of antiderivative = 5.40 \[ \int \sqrt {a+b \sin ^2(e+f x)} \tan (e+f x) \, dx=-\frac {2 \, {\left (\frac {{\left (a + b\right )} \arctan \left (-\frac {\sqrt {a} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - \sqrt {a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + 2 \, a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 4 \, b \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + a} - \sqrt {a}}{2 \, \sqrt {-a - b}}\right )}{\sqrt {-a - b}} - \frac {2 \, {\left ({\left (\sqrt {a} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - \sqrt {a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + 2 \, a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 4 \, b \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + a}\right )} b - \sqrt {a} b\right )}}{{\left (\sqrt {a} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - \sqrt {a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + 2 \, a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 4 \, b \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + a}\right )}^{2} + 2 \, {\left (\sqrt {a} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - \sqrt {a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{4} + 2 \, a \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 4 \, b \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + a}\right )} \sqrt {a} + a + 4 \, b}\right )}}{f} \]
[In]
[Out]
Timed out. \[ \int \sqrt {a+b \sin ^2(e+f x)} \tan (e+f x) \, dx=\int \mathrm {tan}\left (e+f\,x\right )\,\sqrt {b\,{\sin \left (e+f\,x\right )}^2+a} \,d x \]
[In]
[Out]